package server.Example;

import com.core.async.AsyncObject;

/**
 * 异步事件
 * @author King
 *
 */
public class SyncWork extends AsyncObject {

	private int b;
	
	public void doSyncWork(int a)
	{
		System.out.println(a+"  "+Thread.currentThread().getName());
		System.out.println(b);
		b++;
	}
	
	@Override
	public void doCallBack() throws Exception
	{
		System.out.println(Thread.currentThread().getName());
		System.out.println(b);
	}

}
